package pojo.entity;

import java.io.Serializable;

public class News implements Serializable {
    private static final long serialVersionUID = 42L;
    private String ntitle; // 新闻标题
    private String ncontent; // 新闻内容

    public News() {
    }

    public News(String ntitle, String ncontent) {
        this.ntitle = ntitle;
        this.ncontent = ncontent;
    }

    /**
     * 获取
     * @return ntitle
     */
    public String getNtitle() {
        return ntitle;
    }

    /**
     * 设置
     * @param ntitle
     */
    public void setNtitle(String ntitle) {
        this.ntitle = ntitle;
    }

    /**
     * 获取
     * @return ncontent
     */
    public String getNcontent() {
        return ncontent;
    }

    /**
     * 设置
     * @param ncontent
     */
    public void setNcontent(String ncontent) {
        this.ncontent = ncontent;
    }

    public String toString() {
        return "News{ntitle = " + ntitle + ", ncontent = " + ncontent + "}";
    }
}
